<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link rel="stylesheet" type="text/css" href="./CSS/hd_switch.css" />
<script type="text/javascript" src="./js/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
 var  inputhdvalue="";
 var   outputhdvalue="";

$(document).ready(function(){

$("input[type=button][name=inputhd]").click(function(){
     inputhdvalue = $(this).val();
	alert("输入信号： "+inputhdvalue+"  ");
});

$("input[type=button][name=outputhd]").click(function(){
    outputhdvalue = $(this).val();
	//alert(inputvalue);
	if(inputhdvalue =="") 
	  {

	  alert("请选择输入信号");
	  return
	 }
	alert("输入信号： "+inputhdvalue+"  "+"输出信号: "+outputhdvalue+" ");
	
	/* $.ajax({		  
        type: get,		  
       url: http://xx.xxx.xx.xx/cgi-bin/hd_switch.cgi,		 
       data: "input="+inputhdvalue+"&"+"output="+outputhdvalue,		  
       success: function(msg){			 alert( "数据发送成功" + msg );		 
}		
}); */
});



});
</script>
</head>

<body>
<p id="text_area0">高清切换</p>
<div id="hd_switch">
<table id="hd">
<caption>高清切换</caption>
<tr>
<td>输<br />入</td>
<td><input class="input" name="inputhd" type="button" value="HD1" /></td>
<td><input class="input" name="inputhd" type="button" value="HD2" /></td>
<td><input class="input" name="inputhd" type="button" value="HD3" /></td>
<td><input class="input" name="inputhd" type="button" value="HD4" /></td>
</tr>
<tr>
<td>输<br />出</td>
<td><input class="output" name="outputhd" type="button" value="HD1" /></td>
<td><input class="output" name="outputhd" type="button" value="HD2" /></td>
<td><input class="output" name="outputhd" type="button" value="HD3" /></td>
<td><input class="output" name="outputhd" type="button" value="HD4" /></td>
</tr>
</table>
</div>
</body>
</html>
